package com.ycz.cglib.load;

/**
 * @author ycz
 * @date 2021/7/3
 * @description TODO
 * @Company © 版权所有 深圳市天行云供应链有限公司
 */
public class Test {

    public static void main(String[] args) {
        LoaderBean loaderBean = new LoaderBean();
        System.out.println(loaderBean.getLoaderName());
        System.out.println(loaderBean.getLoaderValue());
        // 访问延迟加载对象
        PropertyBean propertyBean = loaderBean.getPropertyBean();
        System.out.println(propertyBean.getPropertyName());
        System.out.println(propertyBean.getPropertyValue());
        System.out.println("after ...");
        // 当再次访问延迟加载对象时，就不会再执行回调了
        System.out.println(propertyBean.getPropertyName());
    }

}
